<?php 
define('IN_WONDERSHARE', true);
header("Content-type:text/html;charset=utf-8");
require('../includes/init.php');
require('./classes/control/control_demo.php');
 class Product {
		
	function __construct(){
		$this->t = new test();
	}

	function index(){
	  $GLOBALS['smarty']->display('1.htm'); 
	}

	function playList(){
		$GLOBALS['smarty']->assign('r','你好哦哦');
		$GLOBALS['smarty']->display('1.htm'); 
	}
	function Del(){
		echo $this->t->del(100);
	}
 }

 	$action    = $_REQUEST['action']; 
	$Product   = new Product;
	
	if(method_exists($Product, $action)) {
			$Product->$action();
	}else{
			$Product->index();
	}
	
?>
